package io.github.yotta.logger.anno.annotation.context;

/**
 * @author yotta
 * @date 2025/3/14 17:09
 */
public class BizIdLogContext {

    private static final InheritableThreadLocal<String> BIZ_ID_THREAD_LOCAL = new InheritableThreadLocal<String>();

    public static void clear() {
        BIZ_ID_THREAD_LOCAL.remove();
    }

    public static String get() {
        return BIZ_ID_THREAD_LOCAL.get();
    }


    public static void set(String bizId) {
        BIZ_ID_THREAD_LOCAL.set(bizId);
    }
}
